package com.upup.train_management.service;

import com.upup.train_management.entity.Train;
import java.util.List;

public interface TrainService {
    List<Train> getAllTrains();
    Train getTrainById(Long id);
    Train getTrainByNumber(String trainNumber);
    Train saveTrain(Train train);
    void deleteTrain(Long id);
}